import defaultHttp from "@/utils/request.js";
export const postAdd = (data) => {
  return defaultHttp({
    url: "/post/add",
    method: "post",
    data,
  });
};

export const postEdit = (data) => {
  return defaultHttp({
    url: "/post/edit",
    method: "post",
    data,
  });
};
export const postList = (data) => {
  return defaultHttp({
    url: "/post/list",
    method: "post",
    data
  });
};
export const postDelete = (data) => {
  return defaultHttp({
    url: "/post/delete",
    method: "post",
    data,
  });
};
